<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/6
 * Time: 10:43
 */

namespace App\Controller;


use Framework\App;
use Framework\Container\Container;
use Framework\Controller;
use Framework\Events\Events;
use Framework\Http\Request;
use Framework\Http\Response;
use Framework\Support\Arr;

class Index extends Controller
{
    protected $events;
//    public function __construct(Request $request, Response $response, Events $events)
//    {
//        $this->events = $events;
//        parent::__construct($request, $response);
//    }

    public function users(){

        echo "<pre>";

//        $this->events->listen("post_system", function (){
//            var_dump(2);
//        });
//        var_dump($this->events);
//        print_r($this->request);
        print_r($this->request->getUri());
        var_dump($this->request->getSession());
//        var_dump($this);
        return "1";
    }
    public function index($id){
        var_dump($id);
        var_dump($this->request->get('a'));
        var_dump(112);
        return $this->request->getUri();
    }

}